package com.yingsheng.bi.hks.dto.goods;

import com.yingsheng.bi.hks.bo.spec.SpecItemBo;
import com.yingsheng.bi.hks.dto.HksTransReq;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
public class GoodsBuyReq extends HksTransReq {

    @ApiModelProperty(value = "商品编号", required = true)
    @NotBlank
    private String goodsId;

    @ApiModelProperty(value = "收货地址", required = true)
    @NotBlank
    private String addressId;

    @ApiModelProperty(value = "商品数量", required = true)
    private Integer goodsCount;

    @ApiModelProperty(value = "备注", required = true)
    private String notes;

    @ApiModelProperty(value = "商品规格", required = true)
    private List<SpecItemBo> specItemBos;
}
